STEP 12: We want to count how many times we rolled each number, but we need to have a list to store our results.

We'll use a list to store our frequency values, also! Lists are an important structure for storing elements in order.

  • In LOGIC, click on . Drag out Empty List.
  • Change the list's variable name from my_list to freq_list.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)